package com.framework.bdf4j.msg.constant;

/**
 * 消息服务公共常量
 *
 * @author shan.deng
 * @date 2020-07-15 16:06:44
 */
public class PublicConstant {

    /*
     * Token 前缀
     */
    public static final String AUTH_PREFIX = "Bearer ";

    /*
     * 邮件配置代码
     */
    public static final String EMAIL_CONFIG = "email_config";

    /*
     * 邮件发送器实例名称
     */
    public static final String EMAIL_SENDER = "emailMessageSender";

    /*
     * 站内信发送器
     */
    public static final String NET_SENDER = "websocketMessageSender";

    /*
     * 短信发送器
     */
    public static final String SMS_SENDER = "smsMessageSender";

    /*
     * 短信
     */
    public static final String SEND_TYPE_SMS = "1";

    /*
     * 邮件
     */
    public static final String SEND_TYPE_EMAIL = "2";

    /*
     * 站内信
     */
    public static final String SEND_TYPE_NET = "3";

    /*
     * 即时
     */
    public static final String SEND_TIME_IMMEDIATE = "1";

    /*
     * 定时
     */
    public static final String SEND_TIME_FIXED = "2";

    /*
     * 成功
     */
    public static final String MSG_RESULT_SUCCESS = "0";

    /*
     * 失败
     */
    public static final String MSG_RESULT_FAILURE = "1";

    /*
     * 站内消息最长展示
     */
    public static final Integer MAX_SIZE_CONTENT = 150;

    /*
     * 新建
     */
    public static final String MSG_STATUS_NEW = "0";

    /*
     * 发送
     */
    public static final String MSG_STATUS_SEND = "1";

    /*
     * 发送成功代码
     */
    public static final String MSG_SEND_RESULT_SUCCESS_CODE = "0";

    /*
     * 发送成功文本
     */
    public static final String MSG_SEND_RESULT_SUCCESS_TEXT = "发送成功";

    /*
     * 发送失败代码
     */
    public static final String MSG_SEND_RESULT_FAILURE_CODE = "1";

    /*
     * 发送失败文本最大长度
     */
    public static final Integer MAX_FAILURE_TEXT_SIZE = 127;

    /*
     * 发送失败默认文本
     */
    public static final String MSG_SEND_RESULT_DEFAULT_FAILURE_TEXT = "发送失败,未知原因";

    /*
     * 接收人类型(到用户)
     */
    public static final String RECEIVER_TYPE_PERSON = "0";

    /*
     * 接收人类型(到部门)
     */
    public static final String RECEIVER_TYPE_DEPT = "1";

    /*
     * 接收人类型(到角色)
     */
    public static final String RECEIVER_TYPE_ROLE = "2";

    /*
     * 接收人类型(全局)
     */
    public static final String RECEIVER_TYPE_GLOBAL = "3";

    /*
     * 接收范围(部分)
     */
    public static final String RECEIVER_RANGE_GLOBAL = "2";

    /*
     * 接收范围(全部)
     */
    public static final String RECEIVER_RANGE_PART = "1";

    /*
     * 不支持短信发送文本
     */
    public static final String NO_SMS_SUPPORT_TEXT = "暂未支持SMS短信发送";
}
